package org.particlethink.request;

import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

public class DeliverRequest {
    @Schema(description = "订单id")
    private int orderId;
    @Schema(description = "预计到达时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishAt; // 预计到达时间
//    private String carNumber;
    @Schema(description = "备注")
    private String remark;//备注

    @Schema(description = "物料")
    private List<DeliveryGood> deliveryGoods;

    private String receiverName;
    private String receiverPhone;
    private String receiverAddress;

    public String getReceiverName() {
        return receiverName;
    }

    public void setReceiverName(String receiverName) {
        this.receiverName = receiverName;
    }

    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public void setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
    }



    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public Date getFinishAt() {
        return finishAt;
    }

    public void setFinishAt(Date finishAt) {
        this.finishAt = finishAt;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public List<DeliveryGood> getDeliveryGoods() {
        return deliveryGoods;
    }

    public void setDeliveryGoods(List<DeliveryGood> deliveryGoods) {
        this.deliveryGoods = deliveryGoods;
    }
}
